package com.kabigon.controller;

import cn.hutool.core.lang.Assert;
import com.kabigon.pojo.ResponseResult;
import com.kabigon.vo.AuthLoginReqVO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@Validated
@RestController
public class AuthController {

    @PostMapping("/login")
    public ResponseResult<Boolean> login(@RequestBody @Valid AuthLoginReqVO reqVO) {
        Assert.isNull(reqVO, "测试断言");
        return ResponseResult.success(true);
    }

}
